package com.ghost.alibabaghost.exception;

/**
 * 包： com.ghost.alibabaghost.exception
 * 项目名称 alighost
 * @author yaolsa
 * 创建时间 2022/4/2 14:39
 * 描述：
 * Version 1.0
 */
public class GhostException extends RuntimeException {

    /*错误状态码*/
    protected Integer errorCode;
    /*错误信息提示*/
    protected String errorMsg;

    public GhostException() {}

    public GhostException(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
